package com.netdisk.entity;

import java.util.Calendar;

/**
 * 分组类
 * @author chenlong
 *2013-4-13
 */
public class Group extends BaseNetdiskEntity{
	
	private String id; 
	
	//组名称
	private String groupName;
	
	//创建时间
	private Calendar createDate;
	
	//状态 0,已经注销, 1活动, 2锁定 
	private byte status = 1;
	
	public Group(){}
	
	public Group(String id,String companyId, String companyName, String groupName, Calendar createDate, byte status) {
		this.id = id;
		this.companyId = companyId;
		this.companyName = companyName;
		this.groupName = groupName;
		this.createDate = createDate;
		this.status = status;
	}
	
	public void setId(String id ){
		this.id = id;
	}
	
	public String getId(){
		return id ;
	}

	public String getGroupName() {
		return groupName;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	public Calendar getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Calendar createDate) {
		this.createDate = createDate;
	}

	public byte getStatus() {
		return status;
	}

	public void setStatus(byte status) {
		this.status = status;
	}

	@Override
	public String toString() {
		return "Group [id=" + id + ", companyId=" + getCompanyId()+ ",companyName=" +getCompanyName()+  ", groupName=" + groupName + ", createDate="
				+ createDate + ", status=" + status + "]";
	}
}
